home *** CD-ROM | disk | FTP | other *** search
/ Java Internet Programming Reference Guide / Java Internet Programming Reference Guide.iso / autorun / java.dir / 00132_12e.txt < prev    next >
Encoding:
Text File  |  1996-01-12  |  5.5 KB  |  970 lines

  1.  
  2. setMinutes method
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. Syntax
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. dateObj.setMinutes(minutes) 
  19.  
  20.  
  21.  
  22. where dateObj is a date object.
  23.  
  24.  
  25.  
  26.  
  27.  
  28. Description
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36. Sets the minutes in the current time. The argument is an integer between 0 and 59.
  37.  
  38.  
  39.  
  40.  
  41.  
  42. Applies to
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49. Date
  50.  
  51.  
  52.  
  53.  
  54.  
  55. Examples
  56.  
  57.  
  58.  
  59.  
  60.  
  61. theBigDay.setMinutes(45)
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. See also
  70.  
  71.  
  72.  
  73.  
  74. xxx To be supplied.
  75.  
  76.  
  77. ------------------------------------------------------------------------
  78.  
  79.  
  80.  
  81.  
  82.  
  83. setMonth method
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92. Syntax
  93.  
  94.  
  95.  
  96.  
  97. dateObj.setMonth(month) 
  98.  
  99.  
  100.  
  101. where dateObj is a date object.
  102.  
  103.  
  104.  
  105.  
  106.  
  107. Description
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115. Sets the month in the current date. The argument is an integer between 0 and 11.
  116.  
  117.  
  118.  
  119.  
  120.  
  121. Applies to
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128. Date
  129.  
  130.  
  131.  
  132.  
  133.  
  134. Examples
  135.  
  136.  
  137.  
  138.  
  139.  
  140. theBigDay.setMonth(6)
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148. See also
  149.  
  150.  
  151.  
  152.  
  153. xxx To be supplied.
  154.  
  155.  
  156. ------------------------------------------------------------------------
  157.  
  158.  
  159.  
  160.  
  161.  
  162. setSeconds method
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171. Syntax
  172.  
  173.  
  174.  
  175.  
  176. dateObj.setSeconds(seconds) 
  177.  
  178.  
  179.  
  180. where dateObj is a date object.
  181.  
  182.  
  183.  
  184.  
  185.  
  186. Description
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194. Sets the seconds in the current time. The argument is an integer between 0 and 59.
  195.  
  196.  
  197.  
  198.  
  199.  
  200. Applies to
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207. Date
  208.  
  209.  
  210.  
  211.  
  212.  
  213. Examples
  214.  
  215.  
  216.  
  217.  
  218.  
  219. theBigDay.setSeconds(30)
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227. See also
  228.  
  229.  
  230.  
  231.  
  232. xxx To be supplied.
  233.  
  234.  
  235.  
  236. ------------------------------------------------------------------------
  237.  
  238.  
  239.  
  240.  
  241.  
  242. setTime method
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252. Syntax
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259. dateObj.setTime(timevalue) 
  260.  
  261.  
  262.  
  263. where dateObj is a date object.
  264.  
  265.  
  266.  
  267.  
  268.  
  269. Description
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277. Sets the value of the date object.
  278. This argument is the number of milliseconds since the epoch 
  279. (1 January 1970 00:00:00)
  280. You can use this method to help assign a date and time to another date object.
  281.  
  282.  
  283.  
  284.  
  285.  
  286. Applies to
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293. Date
  294.  
  295.  
  296.  
  297.  
  298.  
  299. Examples
  300.  
  301.  
  302.  
  303.  
  304.  
  305. theBigDay = new Date("July 1, 1999")
  306. sameAsBigDay = new Date();
  307. sameAsBigDay.setTime(theBigDay.getTime())
  308.  
  309.  
  310.  
  311.  
  312.  
  313. ------------------------------------------------------------------------
  314.  
  315.  
  316.  
  317.  
  318.  
  319. setTimeout method
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326. Evaluates an expression after a specified number of milliseconds have elapsed.
  327.  
  328.  
  329.  
  330.  
  331.  
  332. Syntax
  333.  
  334.  
  335.  
  336.  
  337. timeoutID=setTimeout(expression, msec)
  338.  
  339.  
  340.  
  341. expression is a string expression.
  342.  
  343. msec is a numeric value or numeric string in millisecond units.
  344.  
  345. timeoutID is an identifier that is used only to cancel the evaluation with the clearTimeout method.
  346.  
  347.  
  348.  
  349.  
  350.  
  351. Description
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358. xxx Description to be supplied.
  359.  
  360. Applies to
  361.  
  362.  
  363. window
  364.  
  365.  
  366.  
  367.  
  368.  
  369. Examples
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376. xxx Examples to be supplied.
  377.  
  378.  
  379.  
  380.  
  381.  
  382. See also
  383.  
  384.  
  385.  
  386.  
  387. clearTimeout
  388.  
  389.  
  390. ------------------------------------------------------------------------
  391.  
  392.  
  393.  
  394.  
  395.  
  396. setYear method
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405. Syntax
  406.  
  407.  
  408.  
  409.  
  410. dateObj.setYear(year) 
  411.  
  412.  
  413.  
  414. where dateObj is a date object.
  415.  
  416.  
  417.  
  418.  
  419.  
  420. Description
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428. Sets the year in the current date. Takes as its argument an integer greater than 1900.
  429.  
  430.  
  431.  
  432.  
  433.  
  434. Applies to
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441. Date
  442.  
  443.  
  444.  
  445.  
  446.  
  447. Examples
  448.  
  449.  
  450.  
  451.  
  452.  
  453. theBigDay.setYear(96)
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461. See also
  462.  
  463.  
  464.  
  465.  
  466. xxx To be supplied.
  467.  
  468.  
  469. ------------------------------------------------------------------------
  470.  
  471.  
  472.  
  473.  
  474.  
  475. sin method
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483. Returns the sine of its argument. The argument is in radians.
  484.  
  485.  
  486.  
  487.  
  488.  
  489. Syntax
  490.  
  491.  
  492.  
  493.  
  494. sin(arg)
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501. Applies to
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508. Math
  509.  
  510.  
  511.  
  512.  
  513.  
  514. Examples
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521. xxx Examples to be supplied.
  522.  
  523.  
  524.  
  525.  
  526.  
  527. See also
  528.  
  529.  
  530.  
  531.  
  532. acos, asin, atan, cos, tan methods
  533.  
  534.  
  535. ------------------------------------------------------------------------
  536.  
  537.  
  538.  
  539.  
  540.  
  541. small method
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549. Causes the calling string object to be displayed in small font by surrounding it with HTML small font tags,  <SMALL>..<SMALL>
  550.  
  551.  
  552.  
  553.  
  554.  
  555. Syntax
  556.  
  557.  
  558.  
  559.  
  560. small()
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567. Description
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574. xxx Description to be supplied.
  575.  
  576.  
  577.  
  578.  
  579.  
  580. Applies to
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587. string
  588.  
  589.  
  590.  
  591.  
  592.  
  593. Examples
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600. xxx Examples to be supplied.
  601.  
  602.  
  603.  
  604.  
  605.  
  606. See also
  607.  
  608.  
  609.  
  610.  
  611. big, fontsize methods
  612.  
  613.  
  614. ------------------------------------------------------------------------
  615.  
  616.  
  617.  
  618.  
  619.  
  620. sqrt method
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628. Returns the square root of its argument.
  629.  
  630.  
  631.  
  632.  
  633.  
  634. Syntax
  635.  
  636.  
  637.  
  638.  
  639. sqrt(arg)
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646. Applies to
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653. Math
  654.  
  655.  
  656.  
  657.  
  658.  
  659. Examples
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666. xxx Examples to be supplied.
  667.  
  668.  
  669.  
  670.  
  671.  
  672. See also
  673.  
  674.  
  675.  
  676.  
  677. pow method
  678.  
  679.  
  680. ------------------------------------------------------------------------
  681.  
  682.  
  683.  
  684.  
  685.  
  686. strike method
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694. Causes the calling string object to be displayed as struck out text, by surrounding it with HTML strikeout tags,  <STRIKE>... <STRIKE>
  695.  
  696.  
  697.  
  698.  
  699.  
  700. Syntax
  701.  
  702.  
  703.  
  704.  
  705. strike()
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712. Description
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719. xxx Description to be supplied.
  720.  
  721.  
  722.  
  723.  
  724.  
  725. Applies to
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732. string
  733.  
  734.  
  735.  
  736.  
  737.  
  738. Examples
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745. xxx Examples to be supplied.
  746.  
  747.  
  748.  
  749.  
  750.  
  751. See also
  752.  
  753.  
  754.  
  755.  
  756. blink, bold, italics methods
  757.  
  758.  
  759. ------------------------------------------------------------------------
  760.  
  761.  
  762.  
  763.  
  764.  
  765. sub method
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773. Causes the calling string object to be displayed as a subscript by surrounding it with HTML subscript tags,  <SUB>... <SUB>
  774.  
  775.  
  776.  
  777.  
  778.  
  779. Syntax
  780.  
  781.  
  782.  
  783.  
  784. sub()
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791. Description
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798. xxx Description to be supplied.
  799.  
  800.  
  801.  
  802.  
  803.  
  804. Applies to
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811. string
  812.  
  813.  
  814.  
  815.  
  816.  
  817. Examples
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824. xxx Examples to be supplied.
  825.  
  826.  
  827.  
  828. sup method
  829.  
  830.  
  831. ------------------------------------------------------------------------
  832.  
  833.  
  834.  
  835.  
  836.  
  837. submit method
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845. Submits the form.
  846.  
  847.  
  848.  
  849.  
  850.  
  851. Syntax
  852.  
  853.  
  854.  
  855.  
  856. submit()
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863. Description
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870. xxx Description to be supplied.
  871.  
  872.  
  873.  
  874.  
  875.  
  876. Applies to
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883. form
  884.  
  885.  
  886.  
  887.  
  888.  
  889. Examples
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896. xxx Examples to be supplied.
  897.  
  898.  
  899. ------------------------------------------------------------------------
  900.  
  901.  
  902.  
  903.  
  904.  
  905. substring method
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913. The substring method returns a subset of a string object. If a <b, then it returns the subset starting at character a and ending before character b, considering the first character of the string to be character zero (0). If a >b, then it returns the subset starting at character b and ending at character a. If a = b, then it returns the empty string.
  914.  
  915.  
  916.  
  917.  
  918.  
  919. Syntax
  920.  
  921.  
  922.  
  923.  
  924. substring(a, b)
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931. Description
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938. xxx Description to be supplied.
  939.  
  940.  
  941.  
  942.  
  943.  
  944. Applies to
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951. string
  952.  
  953.  
  954.  
  955.  
  956.  
  957. Examples
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964. If string x is "netscape"then x.substring(0,3) or x.substring(3,0) returns "net" and x.substring(4,7) or x.substring(7,4) returns "cap"
  965.  
  966.  
  967. ------------------------------------------------------------------------
  968.  
  969.  
  970.